import React from 'react'
import {HashRouter as Router,Switch,Route, Redirect} from "react-router-dom"
import CompileRoute from "./router/compile"
import routes from "./router/routes"
import "antd/dist/antd.css"
import "./App.css"
//  import Carousel from "./Carousel"             
import Layout from "./layout"
export default function App(props){
    return(
       <Router>
           {/* <Route  component={(props)=><CompileRoute routes={routes }{...props}/>}/> */}
          
           {/* <Switch>
                <Route path="/login" component=""/>  
                <Route path="/404" component={page404}"/>>
                <Redirect to="/login"/ > 
             </Switch> */}
            <Layout>
                <CompileRoute routes={routes }/>
            </Layout>
       </Router>
    )
}